new Cesium.PointPrimitive()
Scene/PointPrimitive.js 59
A graphical point positioned in the 3D scene, that is created
and rendered using a PointPrimitiveCollection. A point is created and its initial
properties are set by calling PointPrimitiveCollection#add.
Performance:
Reading a property, e.g., PointPrimitive#show, is constant time.
Assigning to a property is constant time but results in
CPU to GPU traffic when PointPrimitiveCollection#update is called. The per-pointPrimitive traffic is
the same regardless of how many properties were updated. If most pointPrimitives in a collection need to be
updated, it may be more efficient to clear the collection with PointPrimitiveCollection#removeAll
and add new pointPrimitives instead of modifying each one.
Throws:
DeveloperError
: scaleByDistance.far must be greater than scaleByDistance.near
DeveloperError
: translucencyByDistance.far must be greater than translucencyByDistance.near
DeveloperError
: distanceDisplayCondition.far must be greater than distanceDisplayCondition.near
Demo:
Cesium Sandcastle Points Demo
See:
PointPrimitiveCollection
PointPrimitiveCollection#add
|